﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DMO_EXE
{
    class Program
    {
        static DMO_BLL.DMO _dmo = new DMO_BLL.DMO();

        static void Main(string[] args)
        {
            RegisterEvents();

            RunDemo();

            Console.ReadLine();
        }

        private static void RunDemo()
        {
            _dmo.DemoMethod();
        }

        static void RegisterEvents()
        {
            _dmo.Events.MessageReceived += new BasicEvents.Events.MessageReception(Events_MessageReceived);
        }

        static void Events_MessageReceived(object sender, BasicEvents.MessageEventArgs e)
        {
            Console.WriteLine(e.Message);
        }
    }
}
